<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>title</title>
</head>
<body>
    
    <button onclick="alert('行内弹窗');">行内弹窗</button>
    <button onclick="printInfo()">内嵌</button>
    <button onclick="promptInfo()">外部文件</button>


    <script src="prompt.js"></script>
    <script>
            function printInfo(){
                print("内嵌弹窗");
            }
    </script>
</body>

</html>